package com.probiz.estore.system.service;

import java.math.BigDecimal;
import java.util.List;

import com.probiz.estore.common.model.system.PaymentHistory;
import com.probiz.estore.core.service.GenericManager;


/**
 * PaymentHistory Business Delegate (Proxy) Interface to handle communication between web and
 * persistence layer.
 * Developer introduced interfaces should be declared here. Won't get overwritten.
 *
 */
public interface PaymentHistoryManager extends GenericManager<PaymentHistory>{
	
	/**
	 * 用于检查支付历史记录是否来自支付网关的重复数据，
	 * 也即，可能支付网关会对同一次的支付会发送多次的返回数量
	 * @param flowNo
	 * @param orderNo
	 * @param paymentGatewayId
	 * @param amount
	 * @param flag
	 * @return
	 */
	public boolean getIsExistPaymentHistory(String flowNo, String orderNo,Integer paymentGatewayId,BigDecimal amount,Short flag);
	
	
	
}
